import {useState} from "react";
import {UserContext} from "./context";
import Children from "./components/Children/Children";

const App = () => {
    const [user, setUser] = useState({name: "马云", age: 56})
    return (
        <div className="App">
            <UserContext.Provider value={[user,setUser]}>
                <Children></Children>
            </UserContext.Provider>
        </div>
    )
}
export default App;
